package hellow_grails

class Notice {

    static constraints = {
        //用于字段检验 如: name blank: false
        //用于字段检验 如: name unique: true
    }

    static mapping = {
        version false
        id column: "id", sqlType: "BIGINT"
        userId column: "user_id", sqlType: "BIGINT"
        createdTs column: "created_ts", sqlType: "TIMESTAMP"
    }

    Long id
    Long userId
    Date createdTs

}
